<div fwa-layout-container="" data-main="true" class="full-height full-width">
	<div fwa-layout-box="center" data-padding="true">
		<div fwa-layout-container  fwa-layout-fullsize="true"  class="full-overflow-y">
			<div fwa-layout-box="north" style="height:340px;" class="background-white">
                   <div class=" full-height full-width">
                         	<div class="row" >
								<div class=" col-xs-12 title" >
										<h4>
											<b>基础信息</b>
										</h4>
								</div>
							</div>
							
							<div class="row margin-top">
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
										<span class="red"> * </span>姓名:
									</div>
									<div class="col-xs-8">
										<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.name">
									</div>
								</div>
							
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
									<span class="red"> * </span>性别:
									</div>
									<div class="col-xs-8">
										 <select  class="form-control" name = "sex"  ng-model="doctorInfoDetail.sex"
							                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['sex']">
							                <option value="">---请选择---</option>
							            </select>
									</div>
								</div>
							</div>
							<div class="row" >
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
									<span class="red"> * </span>出生日期:
									</div>
									<div class="col-xs-8">
										<input ng-model="doctorInfoDetail.birthDate" class="form-control" fwa-datetime ng-change="inputChange()">
									</div>
								</div>
									<div class="form-group col-xs-6" >
										<div class="col-xs-4 control-label text-right">
										<span class="red"> * </span>人员分类:
										</div>
										<div class="col-xs-8">
										<select ui-select2="{allowClear:true}" class="full-width"
										   ng-model="doctorInfoDetail.personType">
											<option value=""></option>
											<option ng-repeat="data in communityService.hosPersonTypeDatas"
														value="{{data.code}}">{{data.name}}</option>
										</select>
										</div>
									</div>
							</div>
							<div class="row" >
								<div class="form-group col-xs-6" >
					                  <div class="col-xs-4 control-label text-right" >
					                      <span class="red"> * </span>证件类型:
					                  </div>
					               	 <div class="col-xs-8">
					                      <select  class="form-control" name = "certificateType" required ng-model="doctorInfoDetail.certificateType"
					                               ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['id_type']">
					                          <option value="">---请选择---</option>
					                      </select>
					                  </div>
					              </div>
						
					              <div class="form-group col-xs-6" >
					                  <div class="col-xs-4 control-label text-right">
					                      <span class="red"> * </span>证件号:
					                  </div>
					                  <div class="col-xs-8">
					                      <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.certificateNo" >
					                  </div>
					              </div>
							</div>
							<div class="row" >
								<div class="form-group col-xs-6" style="line-height: 34px;">
									<div class="col-xs-4 control-label text-right">
										<span class="red"> * </span>保险号:
									</div>
									<div class="col-xs-8">
									 <input class="form-control" name = "bednum"  required ng-model="doctorInfoDetail.insurancenum"  type="text">
									 </div>
								</div>
								
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
										固话:
									</div>
									<div class="col-xs-8">
										<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.contactPhone" >
									</div>
								</div>
							</div>		
									<!-- <div class="col-xs-4 control-label text-right">
										<span class="red"> * </span>医院科室:
									</div>
										<div class="col-xs-8">
							            <select ui-select2="{allowClear:true}" class="full-width" name = "departNo"
										   ng-model="doctorInfoDetail.departNo">
											<option value="">---请选择---</option>
											<option ng-repeat="data in communityService.dictionaryMap['cityDep']"
														value="{{data.codeno}}">{{data.codename}}</option>
										</select>
										<input class="form-control"   required ng-model="doctorInfoDetail.departName"  type="text">
									</div> -->
							
							<!-- <div class="row" >
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
									<span class="red"> * </span>省科室:
									</div>
								
							
							
										  <div class="col-xs-8">
							           <select ui-select2="{allowClear:true}" class="full-width" name = "departParentNo"
										   ng-model="doctorInfoDetail.departParentNo">
											<option value="">---请选择---</option>
											<option ng-repeat="data in communityService.dictionaryMap['provincialDep']"
														value="{{data.codeno}}">{{data.codename}}</option>
										</select>
									</div> 
									
								</div>
								
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
										固话:
									</div>
									<div class="col-xs-8">
										<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.contactPhone" >
									</div>
								</div>
							</div> -->
							<div class="row" >
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-label text-right">
									<span class="red"> * </span>手机:
									</div>
									<div class="col-xs-8">
										 <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.mobilePhone" >
									</div>
								</div>
							
				                <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-label text-right">
				                        	资格名称:
				                    </div>
				                    <div class="col-xs-8">
				                        <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.qualifiedName"  >
				                    </div>
				                </div>
							</div>
							<div class="row" >
								<div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-label text-right">
				                   	    有效期限:
				                    </div>
				                    <div class="col-xs-8">
						                 <div class="col-xs-6" style="padding:0px;">
					                    	<input ng-model="doctorInfoDetail.startDate" class="form-control" fwa-datetime ng-change="inputChange()">
					                    </div>
					                    <div class="col-xs-6" style="padding:0px;">
					                     	<input ng-model="doctorInfoDetail.endDate" class="form-control" fwa-datetime ng-change="inputChange()">
					                    </div>
				                    </div>
				                </div>
							
				                <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-label text-right">
				                      	 培训证号:
				                    </div>
				                    <div class="col-xs-8">
				                        <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.trainingNo" >
				                    </div>
				                </div>
							</div>
							<div class="row" >
							       <div class="form-group col-xs-6" >
					                    <div class="col-xs-4 control-label text-right">
					                        	是否有效:
					                    </div>
					                    <div class="col-xs-8">
						                    <select  class="form-control" name = "isValid"  ng-model="doctorInfoDetail.isValid">
					                            <option value="">---请选择---</option>
					                            <option value="0">有效</option>
					                            <option value="1">无效</option>
						                    </select>
					                    </div>
					                </div>
					                
					               <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-label text-right">
				                      	<div class="row" style="padding-right: 6px;">
				                    	 	 医保服务状态:
				                    	</div>
				                    </div>
				                    <div class="col-xs-8">
					                    <select  class="form-control" name = "serviceStus"  ng-model="doctorInfoDetail.serviceStus">
					                        <option value="">---请选择---</option>
				                            <option value="0">有效</option>
				                            <option value="1">无效</option>
					                    </select>
				                    </div>
				                </div>
							</div>
                   </div>
			</div>
			
			
			<div fwa-layout-box="center " class="background-white" style="min-height:150px">
				<div fwa-layout-container  fwa-layout-fullsize="true"  >
                    <div fwa-layout-box="center " class="background-white">
						<div class=" full-height full-width full-overflow-y">
								<fwa-table  columns="columns" data-rows="doctorInfoDetail.checkInstitutionRows" data-check="true"  check-rows="checkRows">
					            </fwa-table>
	                    </div>
					</div>
					<div fwa-layout-box="south" style="height:40px;" class="background-white">
			            <div class="col-xs-12  text-left" >
							<button type="button" class="btn btn-blue btn-sm" ng-click="addJobAddr();">新增</button> 
			 				<button type="button"class="btn btn-blue btn-sm" ng-click="deleteJobAddr();">删除</button> 
			 			</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div fwa-layout-box="east" style="width:350px;" data-padding="true">
           <div class="full-height full-width background-white full-overflow-y">
               	<div class="full-width" style="height: 200px;">
                   	<div class="row"  >
						<div class=" col-xs-12 title" >
							<h4>
								<b>执业证</b>
							</h4>
						</div>
					</div>
					<div class="row margin-top"  >
						<div class="form-group col-xs-12">
							<div class="col-xs-4 control-label text-right">
								医生证号:
							</div>
							<div class="col-xs-8">
								<input class="form-control" name = "license"   ng-model="doctorInfoDetail.doctorLicense" type="text">
							</div>
						</div>
					</div>
					<div class="row"   >
					<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							执业范围:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.practiceScope" type="text">
						</div>
					</div>
					</div>
					<div class="row"   >
					<div class="form-group col-xs-12" >
						<div class="col-xs-4 control-label text-right">
							执业证号:
						</div>
						<div class="col-xs-8">
							<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.practiceLicense" >
						</div>
					</div>
					</div>
					<div class="row"   >
					<div class="form-group col-xs-12" >
						<div class="col-xs-4 control-label text-right">
						执业类别:
						</div>
						<div class="col-xs-8">
							 <select  class="form-control" name = "practiceScope" required ng-model="doctorInfoDetail.practiceType"
				                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['workScope']">
				                    <option value="">---请选择---</option>
				            </select>
						</div>
					</div>
					</div>
					</div>
					
					<div class="full-width" style="height: 130px;">
					<div class="row"  >
						<div class=" col-xs-12 title" >
								<h4>
											<b>职称证</b>
										</h4>
						</div>
					</div>
					
					<div class="row margin-top">
						        <div class="form-group col-xs-12" >
			                    <div class="col-xs-4 control-label text-right">
			                        	<span class="red"> * </span>资格级别:
			                    </div>
			                    <div class="col-xs-8">
					                  <select ui-select2="{allowClear:true}" class="full-width"
									   ng-model="doctorInfoDetail.qualifiedLevel">
										<option value=""></option>
										<option ng-repeat="data in communityService.qualificationLevelDatas"
													value="{{data.code}}">{{data.name}}</option>
									</select>
			                    </div>
			                </div>
						</div>
						<div class="row" >
		        			 <div class="form-group col-xs-12" >
			                    <div class="col-xs-4 control-label text-right">
			                        	<span class="red"> * </span>授予时间:
			                    </div>
			                    <div class="col-xs-8">
			                        <input ng-model="doctorInfoDetail.qualifiedDate" class="form-control" fwa-datetime ng-change="inputChange()">
			                    </div>
			                </div>
							
		
					</div>
					</div>
	               	<div class="full-width" style="height: 10px;">
	               	</div>
					<div class="full-width" style="height: 200px;">
					<div class="row"  >
						<div class=" col-xs-12 title" >
									<h4>
											<b>资格证</b>
										</h4>
						</div>
					</div>
					
					<div class="row margin-top" >
						<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							学历:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.education" type="text">
						</div>
					</div>
					</div>
					<div class="row" >
						<div class="form-group col-xs-12" >
							<div class="col-xs-4 control-label text-right">
								毕业学校:
							</div>
							<div class="col-xs-8">
								<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.school" >
							</div>
						</div>
					</div>
					<div class="row" >
						<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							专业:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.professional" type="text">
						</div>
					</div>
					</div>
					<div class="row"  >
						<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							类别:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.category" type="text">
						</div>
					</div>
					</div>
					</div>
           </div>
	</div>
	
	<div fwa-layout-box="south" style="background-color:#f0f0f0;height:60px;" data-padding="true">
                  <div class="row">
					<div class="form-group col-xs-12 text-center">
							<button type="button" 
										class="btn btn-blue btn-sm" ng-show="authority.add != 1"  ng-click="saveDoctor();">保存</button> 
						<button type="button" 
										class="btn btn-blue btn-sm" ng-click="cancel();">取消</button> 
					</div>
				</div>
	</div>
</div>